import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld';
import Goods from '../pages/goods/goods';
import Sellers from '../pages/sellers/sellers';
import Ratings from '../pages/ratings/ratings';
import Pr from '../pages/pr';
import detail from '../pages/detail/detail';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/goods',
      name:'Goods',
      component:Goods
    },
    {
      path:'/ratings',
      name:'Ratings',
      component:Ratings
    },
    {
      path:'/sellers',
      name:'Sellers',
      component:Sellers
    },
    {
      path:'/pr',
      name:'pr',
      component:Pr
    },{
      path:'/goods/:id',
      name:'detail',
      component:detail
    }
  ]
})
